/**
 * Created by dllo on 18/4/8.
 */
public class Maaa {
    public static void main(String[] args) {

        // 构造方法1
        Plane plane2 = new Plane();
        plane2.setFrom("广州");
        plane2.setArr("沈阳");
        plane2.setTime("3小时");
        plane2.fly();

        //构造方法2
        Plane plane1 = new Plane("上海", "青岛", "2小时");
        plane1.fly();

        // 普通方法
        Plane plane = new Plane();
        plane.from = "大连";
        plane.arr = "北京";
        plane.time = "1小时";
        plane.fly();

    }
}
